<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // 创建一个构造函数并生成实例并打印出构造函数的原型与实例的原型 
    function Star(uname, age) {
      this.uname = uname;
      this.age = age;
    }
    var ldh = new Star('刘德华', 18)
    console.log(Star.prototype);
    console.log(ldh.__proto__);

  </script>
</body>

</html>